package com.lwp.project.third.provider.module.sys.service;

import com.lwp.project.common.helper.BeanHelper;
import com.lwp.project.third.provider.module.sys.dto.SysRequestLogDTO;
import com.lwp.project.third.provider.module.sys.model.SysRequestLog;
import com.lwp.project.third.provider.module.sys.service.impl.ISysRequestLogService;
import com.lwp.project.third.provider.module.sys.dao.ISysRequestLogDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * <p>
 * 请求日志表 服务实现类
 * </p>
 *
 * @author linwp
 * @since 2018-04-24
 */
@Service("sysRequestLogServiceImpl")
public class SysRequestLogServiceImpl implements ISysRequestLogService {

    @Autowired
    private ISysRequestLogDao sysRequestLogDao ;

    @Override
    public void save(SysRequestLogDTO dto) {
        SysRequestLog sysRequestLog = BeanHelper.createBean(dto, SysRequestLog.class);
        sysRequestLogDao.insert(sysRequestLog);
    }
}
